<style>
.fui-btn-c {
    height: auto;
    background: {{main.syscolor || '#7c1cc9'}};
    margin: 0.6rem 0.3rem;
    padding: 0.4rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
	justify-content:center;
	box-shadow: 0 1px 1px {{main.syscolor || '#7c1cc9'}};
    align-items: center;
	color:#fff;
    position: relative;
	border-radius:2rem;
}

.fui-btn-c .icon {
	font-size:1rem;
	padding-right:0.3rem;
	text-align:right;
}

.fui-btn-c .info {
	text-align:left;
    padding-right: 0.2rem;
    font-size: 0.75rem;
}
.red {color: {{main.syscolor || '#7c1cc9'}};}
.fui-btn-c .info p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.weui_cells_radio2 .weui_check:checked + .weui_icon_checked:before {
  color: {{main.syscolor || '#7c1cc9'}};
}
.parent-category{float:left; width:100%; height:auto; min-height:100%;}
.parent-category ul{margin:0; padding:0; width:100%;}
.parent-category ul li{list-style:none; text-align:center; height:50px; line-height:50px; white-space:nowrap; width:100%; border-bottom:1px solid #e0e0e0; position:relative; right:-1px;}
.parent-category ul li.active{border-right:1px solid #fff; z-index: 10000}
.parent-category ul li a{color:#333; display:inline-block; width:100%; height:100%; text-decoration:none;}
.parent-category ul li.active a{color:{{main.syscolor || '#7c1cc9'}};}
.children-category{width:100%; min-height:100%; height:auto; color: #252525;}
.children-category ul{list-style:none; margin:0; padding:0; overflow-y:auto; overflow-x:hidden; border-left:1px solid #e0e0e0; min-height:100%;}
.children-category ul li{text-align:left; height: 32px; line-height: 32px; padding-left: 15px}
.children-category ul li.delivery-tips{height:25px; line-height:25px; margin-top: -15px; font-size: .65rem; color: #ff2d4b}
.children-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none; color:#333;}
.children-category ul li a span{font-size: .6rem; color: #999;}
.children-category .block{display:block; color:#ef1e15; font-size:.6rem;}
</style>
<div class="fui-page">
	<div class="fui-content">
		<div class="fui-page-title r-f" style="font-size:0.7rem"><span>欢迎您 {{pagedata.member.nickname}}</span><span ng-if="!pagedata.member.nickname" ng-click="access_json('jy_jcfuwu/home/')" style="margin-left:1rem;color:{{main.syscolor || '#7c1cc9'}};">登录</span><i class="icon icon-bangzhuxiantiao" style="color:{{main.syscolor || '#7c1cc9'}};;margin-left:1rem"></i></div>
		<div ng-if="pagedata.pluginset.ishdps!=1" id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:6rem">
				<div ng-class="{'item':1, 'active':$index==0}" ng-repeat="nav in pagedata.pluginset.hdps">
					<a href="javascript:;" ng-click="access_json(nav.url)">
						<img ng-src="{{tomedia(nav.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
					</a>
				</div>
			</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.shopset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-page-title" style="text-align:left">
		  <div style="font-size:0.8rem">下午好，{{pagedata.member.nickname}}</div>
		  <div><i class="icon icon-map" style="color:{{main.syscolor || '#7c1cc9'}};"></i> <span class="subtitle">附近门店：{{pagedata.stores[0].title}} 约{{pagedata.stores[0].juli}}公里</span></div>
		</div>
		<a href="javascript:;" ng-click="access_json('jy_jcfuwu/fuwu.book/')" class="fui-btn-c">
			<i class="icon icon-assessedbadge"></i>
			<div class="info"><div class="bold" style="line-height:1">我要检测</div><div style="line-height:1">order now</div></div>
		</a>
		<div class="fui-cell-group fui-cell-click" style="margin-top: 0">
		<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_jcfuwu/fuwu.order/')">
			<div class="fui-cell-icon"><i class="icon icon-weixiu"></i></div>
			<div class="fui-cell-text">我的检测订单</div>
			<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
		</a>
		<div ng-class="{'fui-icon-group selecter':1, 'col-3':!pagedata.pluginset.pinpailink, 'col-4':pagedata.pluginset.pinpailink}">
			<a class="fui-icon-col external" href="javascript:;" onclick="$('#show_vipcard').modal();" >
				<div class="icon icon-green radius"><i class="icon icon-fukuanma" style="color:{{main.syscolor || '#7c1cc9'}};"></i></div>
				<div class="text">会员码</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_weishop/coupon.index/')">
				<div class="icon icon-orange radius"><i class="icon icon-daifukuan1" style="color:{{main.syscolor || '#7c1cc9'}};"></i></div>
				<div class="text">我的卡包</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_jcfuwu/fuwu.order/')">
				<div class="icon icon-blue radius"><i class="icon icon-paihao0" style="color:{{main.syscolor || '#7c1cc9'}};"></i></div>
				<div class="text">我的服务</div>
			</a>
			<a ng-if="pagedata.pluginset.artid" class="fui-icon-col external" href="javascript:;" ng-click="access_json('core/article.list/detail/onlycontent=1&id='+pagedata.pluginset.artid)">
				<div class="icon icon-blue radius"><i class="icon icon-dianpu" style="color:{{main.syscolor || '#7c1cc9'}};"></i></div>
				<div class="text">品牌介绍</div>
			</a>
		</div>
		<div class="radius" ng-include="sys_html('_bankuai1')"></div>
		<div ng-if="pagedata.pluginset.no_cube!=1" class="fui-picturew row-2" style="padding: 0 0.15rem">
                <a ng-repeat="item in pagedata.pluginset.cube" ng-if="$index<=1" href="javascript:;" ng-click="access_json(item.url)" class="item" style="padding: 0.15rem;">
                    <div class="image">
                        <img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                    </div>
                </a>
		</div>
		<div class="radius" ng-include="sys_html('shop/_bankuai1')"></div>
		<div class="radius" ng-include="sys_html('_likegoods')"></div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
</div>
<div id="show_vipcard"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:30%;">
			<div class="memlogo-area" style="background:url({{tomedia(pagedata.member.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
                    <div class="memlogo">
                        <img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
                    </div>
                    <div class="name">{{pagedata.member.nickname || '匿名'}}</div>
                    <br>
                    <div class="name">{{pagedata.member.mobile || '无手机号'}}</div>
                    <div class="code">
                        <img ng-src="{{tomedia(pagedata.pluginset.logo) || '../addons/jy_jcfuwu/resource/images/logo.png'}}">
                    </div>
                    <div class="bot">
						<img id="barcode"/>
                        <span class="r-f">{{pagedata.member.group}}</span>
                    </div>
            </div>
		</div>
</div>
<div ng-if="pagedata.inorder.id && !pagedata.inorder.noshow" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" style="top: 105%;" ng-click="pagedata.inorder.noshow=true"></i>
			<div class="fui-cell-group" style="background:none;padding:1rem">
			<div class="fui-title-c">
				<div class="title" style="text-align: center;color:#00c568;font-size:0.7rem">当前有订单正在进行中...</div>
			</div>
			<button class="weui_btn weui_btn_primary" style="background:#00c568;line-height:2.8;margin: auto;margin-top:60rpx;width:60%;font-size: 0.75rem;margin-top:0.5rem" ng-click="access_json('jy_jcfuwu/fuwu.order/detail/id='+pagedata.inorder.id);">查看订单</button>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/_welcomehdp',true)"></div>
<script type="text/javascript">
scope.pagedata.params={}
scope.pagedata.post={'sendtype':2,'dayid':0}
</script>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
window.scope.location(function(re){
	re=re?re:{}
	var lat_lng = re.lat_lng?re.lat_lng:{};
	scope.get('jy_weishop/store.index/getlist/limit=5&lat='+lat_lng.lat+'&lng='+lat_lng.lng,function(res){
			//console.log(res);
			scope.pagedata.stores=res.list
	});
});
</script>
<script>
scope.pagedata.issocketmsg=false;
scope.pagedata.tanmuspage=0;
scope.pagedata.nowmsgid=0;
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	JsBarcode('#barcode',scope.pagedata.member.barcode,{fontSize:36});
});
</script>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>